package com.dk.service.impl;

import com.dk.pojo.TCarSeries;
import com.dk.mapper.TCarSeriesMapper;
import com.dk.pojo.TCarType;
import com.dk.service.ITCarSeriesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.swagger.models.auth.In;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 车系表 服务实现类
 * </p>
 *
 * @author author
 * @since 2021-11-01
 */
@Service
public class TCarSeriesServiceImpl extends ServiceImpl<TCarSeriesMapper, TCarSeries> implements ITCarSeriesService {

    @Autowired
    private TCarSeriesMapper tCarSeriesMapper;

    @Override
    public List<TCarSeries> getInfoAll() {
        return tCarSeriesMapper.selectList(null);
    }

    @Override
    public Integer updateInfo(TCarSeries tCarSeries) {
        Integer integer = tCarSeriesMapper.updateById(tCarSeries);
        return integer;
    }

    @Override
    public Integer deleById(Integer id) {
        Integer integer = tCarSeriesMapper.deleteById(id);
        return integer;
    }


}
